Proper connect_port
[juce-lv2.git] / juce / source / extras / the jucer / src / properties / jucer_FilePropertyComponent.h
blob379eba8e1b2ee9c6d3637ade1186503e2ab17e1c
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCER_FILEPROPERTYCOMPONENT_JUCEHEADER__
27 #define __JUCER_FILEPROPERTYCOMPONENT_JUCEHEADER__
30 //==============================================================================
31 /**
33 class FilePropertyComponent : public PropertyComponent,
34 public FilenameComponentListener
36 public:
37 //==============================================================================
38 FilePropertyComponent (const String& name,
39 const bool isDirectory,
40 const bool allowEditingOfFilename,
41 const String& fileBrowserWildcard = "*");
43 ~FilePropertyComponent();
46 //==============================================================================
47 virtual void setFile (const File& newFile) = 0;
48 virtual const File getFile() const = 0;
50 //==============================================================================
51 void refresh();
52 void filenameComponentChanged (FilenameComponent*);
54 private:
55 FilenameComponent* filenameComp;
59 #endif // __JUCER_FILEPROPERTYCOMPONENT_JUCEHEADER__